<?php
use think\facade\Route;

/**
 * 未登录
 */
Route::post('login', 'login/index');
Route::get('verify', 'login/verify');

/**
 * 登录之后
 */
//首页
Route::get('index', 'index/index');

//日志
Route::get('log/list', 'log/getPageList');

//管理员
Route::group('admin', function(){
    Route::get('list','admin/getPageList');
    Route::get('detail','admin/detail');
    Route::post('add','admin/add');
    Route::put('edit','admin/edit');
    Route::delete('delete','admin/delete');
});

//角色权限
Route::group('role', function(){
    Route::get('list','roleAuth/getPageList');
    Route::get('authList','roleAuth/getAuthList');
    Route::get('detail','roleAuth/detail');
    Route::post('add','roleAuth/add');
    Route::put('edit','roleAuth/edit');
    Route::delete('delete','roleAuth/delete');
    Route::put('setRole','roleAuth/setRole');
});